package com.lu.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 核心业务执行日志
 * </p>
 *
 * @author zhanglu
 * @since 2022-08-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class BusinessCoreExecuteLog extends Model<BusinessCoreExecuteLog> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String code;

    /**
     * 0 undo 1 redo
     */
    private Integer type;

    /**
     * 请求参数
     */
    private String inParams;

    /**
     * 执行次数
     */
    private Integer executeCount;

    /**
     * 0 未执行 1执行完成
     */
    private Integer status;

    private String msg;

    /**
     * 描述
     */
    private String description;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
